package cn.lzg.client.module.user.handler;

import cn.lzg.common.core.annotation.SocketCmd;
import cn.lzg.common.core.annotation.SocketModule;
import cn.lzg.common.module.ModuleId;
import cn.lzg.common.module.user.UserCmdId;

/**
 * 用户控制
 * 
 * @author LizG
 *
 */
@SocketModule(module = ModuleId.USER)
public interface UserHandler {

	/**
	 * 登陆
	 * 
	 * @param reultCode
	 * @param data
	 */
	@SocketCmd(cmd = UserCmdId.LOGIN)
	public void login(int reultCode, byte[] data);

	/**
	 * 注册
	 * 
	 * @param resultCode
	 * @param data
	 */
	@SocketCmd(cmd = UserCmdId.REGISTER)
	public void register(int resultCode, byte[] data);
}
